<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%
String path = request.getContextPath(); String basePath =
request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fun" %>
<!DOCTYPE html>
<!--[if IE 7]><html class="ie7 lt-ie10"><![endif]-->
<!--[if IE 8]><html class="ie8 lt-ie10"><![endif]-->
<!--[if IE 9]><html class="ie9 lt-ie10"><![endif]-->
<!--[if gt IE 9]><!-->
<html>
<!--<![endif]-->
<head>
<meta charset="utf-8" />
<title>收藏宝贝_美丽说</title>
<base href="<%=basePath%>">
<meta name="description"
	content="美丽说是白领女性时尚消费第一品牌，为超过1亿注册用户提供导购信息。建立300万全球女性时尚品牌商品库，超过1000家全球品牌达成官方合作导购体验，更好的满足白领女性的时尚消费需求。" />
<meta name="keywords" content="美丽说,美丽说官网,美丽说首页,美丽说登录,导购,白领,女装,网购" />
<link rel="dns-prefetch" href="http://s.meilishuo.net/">
<link rel="dns-prefetch" href="http://i.meilishuo.net/">
<meta http-equiv="x-ua-compatible" content="IE=edge,chrome=1" />
<link rel="stylesheet" type="text/css"
	href="pc/css/base.css?1607171728.25" />
<link rel="icon"
	href="pic/_o/75/6e/2f6871f198c0bd7615ffbf9a2f5f_49_48.c5.png"
	type="image/x-icon" />
<link rel="stylesheet" type="text/css"
	href="pc/css/page/pcenter/common.css?1607171728.25" />
<link rel="stylesheet" type="text/css"
	href="pc/css/page/pcenter/mylike.css?1607171728.25" />
<script type="text/javascript" src="pc/jsmin/fml.js?1"></script>
<script>
	fml.setOptions({
		'sversion' : '1607171728.25',
		'defer' : true,
		'modulebase' : 'pc/jsmin/'
	});
	var Meilishuo = {
		"config" : {
			"nt" : "1yQyN1tU7ssTVQ5GeZ16w2q3pJ2nHWEVXgWdyRI8JFY57s2cDjns589vHeFUoKKI",
			"main_site_domain" : "/",
			"server_url" : "/",
			"picture_url" : "http://i.meilishuo.net/css/",
			"captcha_url" : "http://captcha.meilishuo.com/",
			"im_url" : "http://imlab.meilishuo.com/",
			"forSale" : false,
			"controller" : "mylike",
			"isLogin" : true,
			"userInfo" : {
				"name" : "阿猫来了",
				"uid" : "11cnkktq",
				"avatar" : "http://s2.mogucdn.com/new1/v1/bdefaultavatar/03.jpg"
			}
		}
	};
</script>
</head>
<body>
	<jsp:include page="common/header.jsp"></jsp:include>	
	<div class="pcenter">
		<div class="collect_nav">
			<a href="mylike.jsp#" class="active">收藏的宝贝</a>
		</div>
		<div class="collect-title">
			<ul>
				<li><a href="javascript:;" class="active">全部 <span>${fun:length(brow)}</span></a>
				</li>
				<!--<li> <a href="javascript:;">上衣 <span>31</span></a> </li> <li> <a href="javascript:;">裙子 <span>31</span></a> </li> <li> <a href="javascript:;">裤子 <span>31</span></a> </li> <li> <a href="javascript:;">包包 <span>31</span></a> </li> <li> <a href="javascript:;">鞋子 <span>31</span></a> </li>-->
			</ul>
		</div>
		<div class="mylike_content" id="mylike_content">
			<c:forEach items="${brow}" var="brow">
				<div class="one-goods ">
				<a class="img-panel" href="/goods/showGoodInfo?goodsId=${brow.goodsid }">
					<img
					src="${brow.goodsthums}"
					alt="">
				</a> <span class="delete-like" data-twitter-id="502030156"
					data-object-type="710"> <em onclick="collect(this,${brow.goodsid });"></em>
				</span>
				<div class="cost-and-salenum">
					<span class="goods-cost">￥${brow.goodsprice}</span> <span class="sale-num">喜欢${brow.good.collectnum}</span>
				</div>
				<a class="title-panel" href="/goods/showGoodInfo?goodsId=${brow.goodsid }">${brow.goodsnames}</a>
			</div>
			</c:forEach>
			<!-- <div class="one-goods ">
				<a class="img-panel" href="shopdetail.jsp#?1fwo7m6" target="_blank">
					<img
					src="http://d05.res.meilishuo.net/pic/_o/81/7c/242f65a942ddd03d3454a900fa3d_640_832.c1.jpg"
					alt="">
				</a> <span class="delete-like" data-twitter-id="480934955"
					data-object-type="684"> <em></em>
				</span>
				<div class="cost-and-salenum">
					<span class="goods-cost">￥96.00</span> <span class="sale-num">喜欢2691</span>
				</div>
				<a class="title-panel" href="shopdetail.jsp#?1fwo7m6"
					target="_blank"> 爱丽缇品牌2016夏季新品碎花荷叶袖雪纺衫 </a>
			</div> -->
		</div>
	</div>
	<script type="text/javascript">
		function collect(em,goodsid){
			$.ajax({
    	        cache:true,
    	        type: "POST",
    	        url:'/browfav/selectByExample?goodsId='+goodsid,
    	        data:"",// 你的formid
    	        dateType:"json",
    	        async: false,
    	        error: function(data) {
    	            alert("Connection error");
    	        },
    	        success:function(data) {
   	        		if(data.results){
   	        			$(em).parent(".one-goods").remove();
       	        		return;
   	        		}else{
   	        			alert('请先登录');
       	        		return;
   	        		}
    	        }
    	    });
		}
	</script>
	<jsp:include page="common/footer.jsp"></jsp:include>
	<jsp:include page="common/right.jsp"></jsp:include>
	<script type="text/javascript" src="pc/jsmin/jquery.js?1.12.4"></script>
	<script type="text/javascript" src="__static/logger/0.1.8/logger.js"></script>
	<script src="__newtown/im_web/assets/common/openim/index.js"></script>
	<script src="pc/~page/pcenter/mylike+base?1607171728.25"></script>
	<script>
		fml.use('page/pcenter/mylike');
		;
		fml.use('base');
		;
		fml.iLoad();
	</script>
</body>
</html>